package jobs.job2;

import java.util.Random;

public class RandomStringGenerator {

    Random random = new Random();
    public  String randomName() {
        return nextWord(random.nextInt(12));
    }

    public String nextWord(int len) {
        StringBuilder sb = new StringBuilder();
        sb.append((char) Character.toUpperCase(random.nextInt(26) + 'a'));
        for (int i = 0; i < len; i++) {
            char ch = (char) (random.nextInt(26) + 'a');
            sb.append(ch);
        }
        return sb.toString();
    }


}
